﻿using AntdUI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AttendanceSysytem.Controls
{
    public class BaseControl:UserControl
    {
        public void MessageBoxShow(string message, TType type = TType.Info)
        {
            AntdUI.Modal.open(new AntdUI.Modal.Config(this.FindForm(), "消息", message)
            {
                Icon = type,
                //内边距
                Padding = new Size(24, 20),
                OkText = "Confirm",
                CancelText = null,
            });
        }
    }
}
